#ifndef __GAME_VERSION_H__
#define __GAME_VERSION_H__

#include <stdio.h>
#include "game_config.h"
#include "game_def.h"
#define CGAME_VSTRING_FMT "%s version %d.%d.%d(%s)\n"
#define CGAME_VERSION_FMT "v%d.%d.%d(%s)"

struct CGameVersion_t
{
  UINT8 _major;
  UINT8 _minor;
  UINT16 _patch;
};


// #if CGAME_DEBUG == 1
// #define CGAME_VERSION_FMT "CGame++ version %d.%d.%d(Debug)\n"
// #else
// #define CGAME_VERSION_FMT "CGame++ version %d.%d.%d(Release)\n"
// #endif

// int __version(FILE *stream,const char *name,const char *build,int major,int minor,int patch);
// int __cgame_version(FILE *stream);
void __vprint();
void __vprint(FILE *stream);
int __vstring(char *dest,const char *name,const char *build,int major,int minor,int patch);
int __vstring(char *dest);
int __version(char *dest,const char *build,int major,int minor,int patch);
int __version(char *dest);
UINT32 __version(UINT8 major,UINT8 minor,UINT16 patch);
void __version(CGameVersion_t* v,UINT32 val);
// int __cgame_version(char* dest);
#endif
